#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#

class Foo(object):
    def __init__(self, name, age, sex):
        self.name = name
        self.age = age
        self.sex = sex


# 重用父类  这种方法与继承无关，
class Bar(Foo):
    def __init__(self, name, age, sex, level):
        Foo.__init__(self, name, age, sex)
        self.level = level


b = Bar("xiong", 100, "male", 1)
print(b.__dict__)
print(Bar.mro())